<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class SystemNotification extends Notification
{
    use Queueable;
	
	protected $message = '';
	
	/**
	 * @var null|Account
	 */
	protected $account = null;
	
	public function __construct($message)
	{
		$this->message = $message;
	}
	
	public function via($notifiable)
	{
		return ['database'];
	}
	
	public function toDatabase($notification)
	{
		return [
			'message' => $this->message
		];
	}
}
